package cn.csc.module.order.controller.admin.logistics.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 订单物流 Excel 导出 Request VO", description = "参数和 OrderLogisticsPageReqVO 是一致的")
@Data
public class OrderLogisticsExportReqVO {

    @ApiModelProperty(value = "订单编码")
    private BigInteger orderId;

    @ApiModelProperty(value = "发货快递单号")
    private String expressNo;

    @ApiModelProperty(value = "收货人姓名")
    private String consigneeRealname;

    @ApiModelProperty(value = "联系电话")
    private String consigneePhone;

    @ApiModelProperty(value = "备用联系电话")
    private String consigneePhoneSpare;

    @ApiModelProperty(value = "收货地址")
    private String consigneeAddress;

    @ApiModelProperty(value = "邮政编码")
    private Integer consigneeZip;

    @ApiModelProperty(value = "物流方式")
    private String logisticsType;

    @ApiModelProperty(value = "物流发货运费")
    private BigDecimal logisticsFee;

    @ApiModelProperty(value = "物流状态")
    private Integer orderLogisticsStatus;

    @ApiModelProperty(value = "物流结算状态")
    private Integer logisticsSettlementStatus;

    @ApiModelProperty(value = "物流最后状态描述")
    private String logisticsResultLast;

    @ApiModelProperty(value = "物流描述")
    private String logisticsResult;

    @ApiModelProperty(value = "发货时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] logisticsCreateTime;

    @ApiModelProperty(value = "物流更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] logisticsUpdateTime;

    @ApiModelProperty(value = "物流结算时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] logisticsSettlementTime;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
